<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	>
<h:head>
	<title>Painel de Controle</title>
</h:head>
<h:body>
	<p:panel header="Projeto JSF 2.0 com PrimeFaces" id="panel">
		
			<!-- Begin of the MENU -->
		<h:form id="panel2">
			<p:toolbar>
				<p:toolbarGroup align="left">
					<p:commandButton type="button" value="Home" />
					<p:menuButton value="Cadastros">
						<p:menuitem value="Pessoa"  ajax="true" onclick="#{MBPage.changeForPeople()}" update="panel2" />
						<p:menuitem value="Centros" url="#" />
					</p:menuButton>
					<p:menuButton value="Relatórios">
						<p:menuitem value="Pessoa" onclick="cadastroPessoa.show()" />
						<p:menuitem value="Centros" url="#" />
					</p:menuButton>
					<p:separator />
					<p:commandButton type="button" title="Save" icon="ui-icon-disk" />
					<p:commandButton type="button" title="Delete" icon="ui-icon-trash" />
					<p:commandButton type="button" title="Print" icon="ui-icon-print" />
				</p:toolbarGroup>
				<p:toolbarGroup align="right">
					<p:menuButton value="Options">
						<p:menuitem value="Home" url="#" />
						<p:menuitem value="ShowCase" url="#" />
						<p:menuitem value="TouchFaces" url="#" />
					</p:menuButton>
				</p:toolbarGroup>
			</p:toolbar>
		</h:form>
		<!-- END of the MENU -->
		<!-- 
		<ui:insert name="header">
		<ui:include src="/template/header.xhtml" />
		</ui:insert>
		 -->
		<ui:insert name="nav-content">
		<ui:include src="#{MBPage.page}" />
		</ui:insert>
		<p:growl id="messages" />
	</p:panel>
</h:body>
</html>